package com.bing.beans;

/**
 * Created by kaibb on 14-7-23.
 */
public class Parent {
    static {
        System.out.println("parent static 初始化1 ");
    }

    {
        num = 20;
        System.out.println("parent 内部初始化1: " + num);
    }

    public static int num = 5;

    public final static String abc = "abc";

    static {
        num = 15;
        System.out.println("parent static 初始化2 num:" + num);
    }

    {
        num = 10;
        System.out.println("parent 内部初始化2: " + num);
    }

    public Parent() {
        num = 30;
        System.out.println("parent 构造函数 num: " + num);
    }
}
